<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/include/taglibs.jsp"%>
<style>

</style>

<div id="left">
<h3>请输入您推荐的RSS信息:</h3>  
<form method="post" action="editRss.html" name="rss">
<spring:bind path="rss.rssId">
<input type="hidden" name="id" value="${status.value}"/> 
</spring:bind>
<table class="detail">

<tr>
    <th><label for="title" class="required">
        <fmt:message key="rss.title"/>:</label></th>
    <td>
        <spring:bind path="rss.title">
        <input type="text" name="${status.expression}" 
            id="title" value="${status.value}" size="40"/>
        <span class="fieldError">${status.errorMessage}</span>
        </spring:bind>
    </td>
</tr>
<tr>
    <th><label for="url" class="required">
        <fmt:message key="rss.rssUrl"/>:</label></th>
    <td>
        <spring:bind path="rss.rssUrl">
        <input type="text" name="${status.expression}" value="${status.value}" size="40"/>
        <span class="fieldError">${status.errorMessage}</span>
        </spring:bind>
    </td>
</tr>
<tr>
    <th><label for="url">
        <fmt:message key="rss.mainUrl"/>:</label></th>
    <td>
        <spring:bind path="rss.mainUrl">
        <input type="text" name="${status.expression}" value="${status.value}" size="40"/>
        <span class="fieldError">${status.errorMessage}</span>
        </spring:bind>
    </td>
</tr>
<tr>
    <th><label for="intro">
        <fmt:message key="rss.intro"/>:</label></th>
    <td>
        <spring:bind path="rss.intro">
        <textarea name="${status.expression}"  cols="40" rows="10">${status.value}</textarea>
        <span class="fieldError">${status.errorMessage}</span>
        </spring:bind>
    </td>
</tr>

<tr>
    <td></td>
    <td>
        <input type="submit" class="button" name="save" value="保存"/>
      	<input type="button" class="button" name="cancel" value="取消" onclick="javascript:history.back(-1)"/>
    </td>
</tr>
</table>
</form>
</div>

<div id="right">
<jsp:include page="/include/openSite.jsp"/>
</div>

<script type="text/javascript">
    document.forms["rss"].elements["title"].focus();
</script>

<v:javascript formName="rssForm" staticJavascript="false" xhtml="true" cdata="false"/>
<script type="text/javascript" src="<c:url value="/scripts/validator.jsp"/>"></script>
